# install nginx
echo "
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/7/x86_64/
gpgcheck=0
enabled=1
" > /etc/yum.repos.d/nginx.repo
sudo yum-config-manager --enable nginx-mainline
sudo yum install nginx -y
echo "install nginx successfully"
sudo systemctl enable nginx
sudo systemctl start nginx
echo "start nginx successfully"
